﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyManager.aspx.cs" Inherits="WebSite.admin.company.CompanyManager" %>
<%@ Register src="../../Controls/AddressArea.ascx" tagname="AddressArea" tagprefix="uc1" %>
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>良臣直销网 </title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "商家管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>添加商家"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx'; 
            }
        }

        function trim(str){ //删除左右两端的空格
　　     return str.replace(/(^\s*)|(\s*$)/g, "");
        }


	</script>
    <style type="text/css">
        .style1
        {
            width: 36%;
        }
        .style2
        {
            width: 30%;
        }
        .style3
        {
            width: 10%;
            text-align:right;
        }
        .style4
        {
            font-size: 12px;
            color: #000000;
            line-height: 20px;
            height: 14px;
        }
        .style5
        {
            width: 36%;
            height: 14px;
        }
        .style6
        {
            width: 10%;
            text-align: right;
            height: 14px;
        }
        .style7
        {
            width: 30%;
            height: 14px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
<table  width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <table width="98%" border="1px" rules="rows" style="border-right-width:0px;"  cellpadding="0" cellspacing="0"  >
          <tr>
      <td width="16%" align="right" class="title01">公司编号：</td>
      <td align="left" class="style1">
        <asp:TextBox ID="txtCompanyCode" runat="server" class="txtInput" MaxLength="4" ReadOnly="true" ></asp:TextBox>
            </td>
      <td align="left" class="style3">
          &nbsp;</td>
      <td align="left" class="style2">
          &nbsp;</td>
    </tr>
  
        <tr>
      <td width="16%" align="right" class="title01">公司全称：</td>
      <td align="left" class="style1">
        <asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="300" ></asp:TextBox>*<asp:RequiredFieldValidator 
              ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtName" 
              ErrorMessage="公司全称不能为空！"></asp:RequiredFieldValidator>
            </td>
      <td align="left" class="style3">
          公司简称：</td>
      <td align="left" class="style2">
        <asp:TextBox ID="txtShortName" runat="server" class="txtInput" MaxLength="50"></asp:TextBox>*<asp:RequiredFieldValidator 
              ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtShortName" 
              ErrorMessage="公司简称不能为空！"></asp:RequiredFieldValidator>
            </td>
    </tr>
  
   
  
    <tr>
      <td align="right" class="title01">公司地址：</td>
      <td align="left" class="style1">
             <uc1:AddressArea ID="AddressArea1" runat="server" />  <asp:TextBox ID="txtAddress"  Width="300px" runat="server"></asp:TextBox>
             *<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                 ControlToValidate="txtAddress" ErrorMessage="公司地址不能为空！"></asp:RequiredFieldValidator>
      </td>
      <td align="left" class="style3">
             邮  编：</td>
      <td align="left" class="style2">
             <asp:TextBox ID="txtPostcode" class="txtInput" runat="server"></asp:TextBox></td>
    </tr>
      <tr id="trLoginUser" runat="server">
      <td width="16%" align="right" class="title01">登录用户名：</td>
      <td align="left" class="style1">
      <asp:TextBox ID="txtUserName" class="txtInput" runat="server" MaxLength="50"></asp:TextBox>*<asp:RequiredFieldValidator 
              ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName" 
              ErrorMessage="登录用户名不能为空！"></asp:RequiredFieldValidator>
          </td>
      <td align="left" class="style3">
          </td>
      <td align="left" class="style2">
         
          </td>
    </tr>
      <tr  id="trLoginPwd" runat="server">
      <td align="right" class="title01">登录密码：</td>
      <td align="left" class="style1">
        <asp:TextBox ID="txtPassword" runat="server" class="txtInput" TextMode="Password" 
              MaxLength="50"></asp:TextBox>
          </td>
      <td align="left" class="style3">
          确认密码：</td>
      <td align="left" class="style2">
        <asp:TextBox ID="txtConfirmPass" runat="server" class="txtInput" 
              TextMode="Password" MaxLength="50"></asp:TextBox>
          <asp:CompareValidator ID="CompareValidator1" runat="server" 
              ControlToCompare="txtPassword" ControlToValidate="txtConfirmPass" 
              ErrorMessage="两次密码不一致！"></asp:CompareValidator>
          </td>
    </tr>
         <tr id="trUpCompany" runat="server">
      <td align="right" class="title01">上级商家：</td>
      <td align="left" class="style1">
      
      <asp:DropDownList ID="ddlUpCompany" runat="server" ></asp:DropDownList>
          </td>
      <td align="left" class="style3">
      
          &nbsp;</td>
      <td align="left" class="style2">
      
          &nbsp;</td>
    </tr>
         <tr>
      <td align="right" class="title01">商家类别：</td>
      <td align="left" class="style1">
      
      <asp:DropDownList ID="ddlCompanyLevel" runat="server"></asp:DropDownList>
          折扣：<asp:TextBox ID="txtOnSale" class="txtInput" runat="server" Width="80px">0.65</asp:TextBox>
          *折扣为0.50-1.00之间的数字</td>
      <td align="left" class="style3">
      
          &nbsp;</td>
      <td align="left" class="style2">
           &nbsp;</td>
    </tr>
       
    <tr>
      <td align="right" class="title01">
          电子邮件：</td>
      <td align="left" class="style1">
         <asp:TextBox ID="txtEmail" runat="server" class="txtInput" MaxLength="200"></asp:TextBox>
        *<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
              ControlToValidate="txtEmail" ErrorMessage="电子邮件不能为空！"></asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
              ControlToValidate="txtEmail" ErrorMessage="电子邮件格式不正确！" 
              ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </td>
      <td align="left" class="style3">
          公司电话：</td>
      <td align="left" class="style2">
          <asp:TextBox ID="txtTel" class="txtInput" runat="server"></asp:TextBox>
          *<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
              ControlToValidate="txtTel" ErrorMessage="公司电话不能为空！"></asp:RequiredFieldValidator>
            </td>
    </tr>


      <tr>
      <td align="right" class="title01">公司联系人：</td>
      <td align="left" class="style1">
         <asp:TextBox ID="txtLinker" runat="server" class="txtInput" MaxLength="50"></asp:TextBox>
          *<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
              ControlToValidate="txtLinker" ErrorMessage="联系人不能为空！"></asp:RequiredFieldValidator>
      </td>
      <td align="left" class="style3">
          联系人手机号码：</td>
      <td align="left" class="style2">
          <asp:TextBox ID="txtMobile" class="txtInput" runat="server"></asp:TextBox></td>
    </tr>

    
        <tr>
      <td align="right" class="title01">传  真：</td>
      <td align="left" class="style1">
         <asp:TextBox ID="txtFax" runat="server" class="txtInput"></asp:TextBox>
      </td>
      <td align="left" class="style3">
          QQ：</td>
      <td align="left" class="style2">
          <asp:TextBox ID="txtQQ" class="txtInput" runat="server"></asp:TextBox></td>
    </tr>

     

        <tr>
      <td align="right" class="title01">&nbsp;</td>
      <td align="left" class="style1">
          &nbsp;</td>
      <td align="left" class="style3">
          &nbsp;</td>
      <td align="left" class="style2">
          &nbsp;</td>
    </tr>

     

      <tr style="display:none;">
      <td align="right" class="title01">公司类别：</td>
      <td align="left" class="style1">
         <asp:DropDownList ID="ddlCompanyType" runat="server">
           <asp:ListItem Text="商家" Value="1"></asp:ListItem>
         <asp:ListItem Text="生产商" Value="0"></asp:ListItem>
         </asp:DropDownList>
      </td>
      <td align="left" class="style3">
          &nbsp;</td>
      <td align="left" class="style2">
          &nbsp;</td>
    </tr>

      <tr>
      <td align="right" class="title01">
          <asp:HiddenField ID="hdCompany" runat="server" />
          </td>
      <td align="left" class="style1">
          <asp:HiddenField ID="hdLoginUser" runat="server" />
          </td>
      <td align="left" class="style3">
          &nbsp;</td>
      <td align="left" class="style2">
          &nbsp;</td>
    </tr>

    <tr>
      <td align="center" colspan="4"><asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server"  OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
    </tr>
  </table></td>
</tr>
</table>
</center>
    </div>
    </form>
</body>
</html>
